import inspect


def debug():
    print(inspect.stack()[0][3])
    print(inspect.stack()[1][3])
    caller_name = inspect.stack()[1][3]


def say_hello():
    debug()


def say_goodbye():
    debug()


if __name__ == '__main__':
    say_hello()
    say_goodbye()